//
//  BoilingView.swift
//  Juejin App Demo
//
//  Created by 葛鹏 on 2021/8/15.
//

import SwiftUI

struct BoilingView: View {
    
    @State private var addBoilingViewPresented: Bool = false
    
    var body: some View {
        
        
        NavigationView{
            
            NavigationLink(
                destination: AddBoilingView(), //新增沸点页
                isActive: $addBoilingViewPresented,
                label: {
                    ZStack(alignment: .bottomTrailing){
                        ScrollView{
                            //沸点列表
                        }
                        Button(action: {
                            addBoilingViewPresented = true
                        }, label: {
                            ZStack{
                                
                                RoundedRectangle(cornerRadius: 50).foregroundColor(.blue).frame(width: 75, height: 75)
                                
                                Image(systemName: "square.and.pencil").foregroundColor(.white).font(.system(size: 35))
                                
                            }
                        }).padding()
                    }
                })
        }
       
    }
}

struct BoilingView_Previews: PreviewProvider {
    static var previews: some View {
        BoilingView()
    }
}
